import junit.framework.TestCase;
import org.junit.Test;
public class StringBufferExerciseTest extends TestCase {
	StringBuffer buffer = new StringBuffer("StringBuffer");
	@Test
	public void testcharAt(){
		assertEquals('S',buffer.charAt(0));
	}
	@Test
	public void testcapacity(){
		assertEquals(28,buffer.capacity());
	}
	@Test
	public void testindexof(){
		assertEquals(1,buffer.indexOf("tring"));
	}
	@Test
	public void testtoString(){
		assertEquals("StringBuffer",buffer.toString());
	}
}
